// test.module.js

// 管理测试数据


// [[file:~/literate-programming/soul-hunter-awakening-damage-calculator-web-edition.org::*test.module.js][test.module.js:1]]
import * as Equal from "./equal.module.js"

function report(objects){
    console.log(insert(objects))
}

function insert(objects){
    let result={passed:[],failed:[]}

    objects.forEach(function(object){
        let form=object.form
        let shouldbe=object.shouldbe
        let is=object.is
        if(Equal.equal(is,shouldbe)){
            result.passed.push(object)
        }else{
            result.failed.push(object)
        }
    })

    return result
}

export{report}
// test.module.js:1 ends here
